package com.yvpi.yvpicturebackend.model.dto.picture;

import cn.hutool.json.JSONUtil;
import com.qcloud.cos.model.COSObject;
import com.qcloud.cos.model.COSObjectInputStream;
import com.qcloud.cos.model.GetObjectRequest;
import com.yvpi.yvpicturebackend.exception.BusinessException;
import com.yvpi.yvpicturebackend.exception.ErrorCode;
import lombok.Data;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

import java.io.IOException;
import java.io.Serializable;

/**
 * 按照颜色搜图请求类
 */
@Data
public class SearchPictureByColorRequest implements Serializable {

    /**
     * 图片主色调
     */
    private String picColor;

    /**
     * 空间 id
     */
    private Long spaceId;

    private static final long serialVersionUID = 1L;

    /**
     * 获取图片主色调
     *
     * @param key 文件 key
     * @return 图片主色调
     */


}
